﻿using System;
using Windows.ApplicationModel.Core;
using Windows.UI.Core;

namespace Smile.Threading
{
    public class Dispatcher
    {
        public static async void BeginInvoke(DispatchedHandler action)
        {
            await CoreApplication
                .MainView
                .CoreWindow
                .Dispatcher
                .RunAsync(new CoreDispatcherPriority(), action);
        }
    }
}
